<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath()%>/js/easyui/themes/metro/easyui.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath()%>/js/date/skin/WdatePicker.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath()%>/js/autocomplate/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/easyui/easyui.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/date/WdatePicker.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/autocomplate/jquery.autocomplete.js"></script>
<script type="text/javascript">
	$(function() {
		$("#dataTable").datagrid({
			toolbar : '#dataSearch',
			fitColumns : true,
			striped : true,
			singleSelect : false,
			pagination : true,
			rownumbers : true,
			SelectOnCheck : true,
			CheckOnSelect : true,
			onSelect : function(index, row) {
				var nos = "";
				var rows = $('#dataTable').datagrid('getSelections');
				for (var i = 0; i < rows.length; i++) {
					nos = nos + rows[i].ck + ",";
				}
				$("#keys").val(nos);
			},
			onUnselect : function(index, row) {
				var nos = "";
				var rows = $('#dataTable').datagrid('getSelections');
				for (var i = 0; i < rows.length; i++) {
					nos = nos + rows[i].ck + ",";
				}
				$("#keys").val(nos);
			},
			onSelectAll : function(rows) {
				var nos = "";
				for (var i = 0; i < rows.length; i++) {
					nos = nos + rows[i].ck + ",";
				}
				$("#keys").val(nos);
			},
			onUnselectAll : function(rows) {
				$("#keys").val("");
			}
		});

		$('#dataTable').datagrid('getPager').pagination({
			total : <s:property value="pageInfo.pageRecord"/>,
			pageNumber : <s:property value="pageInfo.pageIndex"/>,
			pageSize : <s:property value="pageInfo.pageSize"/>,
			pageList : [ 10, 20, 50, 100 ],
			onSelectPage : function(pageNumber, pageSize) {
				toPage(pageNumber, pageSize);
			},
			onRefresh : function(pageNumber, pageSize) {
				location.reload();
			}
		});
	});
</script>
</head>
<body>
<div class="easyui-panel" title="提示面板" style="width:100%;" data-options="fit:true">
		<table width="90%" border="0">
			<tr>
					<td height="30" align="right" width="200"><b>日志类型 : </b></td>
					<td width="300">登录日志</td>
					<td width="300">操作日志</td>
					<td></td>
				</tr>
				<tr>
					<td></td>
					<td colspan="3" ><hr /></td>
				</tr>
				<tr>
					<td height="30" align="right" ></td>
					<td valign="top">
							<table border="0" width="100%">
								<s:iterator value="loginList" id="show">
									<tr>
									<td height="30"  width="50%">
									<s:property value="#show.name"/>
									</td>
									<td>
										<input type="button" value="下载" style="width: 50px;" class="submit" onclick="location.href='<%=request.getContextPath()%>/download.html?logType=login&logName=<s:property value="#show.name"/>'" /></td>
									</td>
									</tr>
								</s:iterator>
							</table>
					</td>
					<td valign="top">
							<table border="0" width="100%">
								<s:iterator value="operateList" id="show">
									<tr>
									<td height="30"  width="50%">
									<s:property value="#show.name"/>
									</td>
									<td>
										<input type="button" value="下载" style="width: 50px;" class="submit" onclick="location.href='<%=request.getContextPath()%>/download.html?logType=operate&logName=<s:property value="#show.name"/>'" /></td>
									</td>
									</tr>
								</s:iterator>
							</table>
					</td>
					<td></td>
				</tr>
				<tr>
					<td></td>
					<td colspan="3" ><hr /></td>
				</tr>
				<tr>
					<td height="30" align="right"></td>
					<td height="30" colspan="3"><input type="button" class="submit" value="返回上级" onclick="history.go(-1);" /></td>
				</tr>
		</table>
    </div>

</body>
</html>
